#!/bin/bash

_shadow=/job/shadow
echo "need a check to see if shadow output directory is there"
echo "need to add an additional command line argument to specify the port"
echo "need to add an additional command line argument to specify the password if possible"
echo "manual script"

ipaddress=$1
username=root

query='select ipaddress,port from services where service = "ssh"'
cmd="scp ${username}@\${1}:/etc/shadow /job/shadow/\${1}.shadow"
/opt/python3/bin/python3 /root/workspace/q2ex/src/q2ex.py -d /job/test.db -q "$query" -c "$cmd"
